import { fetch } from '@/axios-config/axios'
interface PropsData {
  params?: any
  data?: any
}

// 统计讲师累计收入、可提现金额、学生数量、课程数量
export const getIndexApi = (): any => {
  return fetch({ url: '/edu/teacher/index', method: 'get' })
}

// 统计讲师每天订单数量和收益名称
export const getDailyReportListApi = (): any => {
  return fetch({ url: '/edu/teacher/index/getDailyReportList', method: 'get' })
}

// 获取讲师信息
export const getTeacherInfoApi = (): any => {
  return fetch({ url: '/edu/teacher/index/getTeacherInfo', method: 'get' })
}

// 更新讲师收款信息
export const setTeacherApi = ({ data }: PropsData): any => {
  return fetch({ url: '/edu/teacher/index/updateTeacher', method: 'put', data })
}

// 讲师提现申请
export const applyTeacherApi = ({ data }: PropsData): any => {
  return fetch({ url: '/edu/teacher/index/apply', method: 'post', data })
}
